package model

import "time"

type BookLike struct {
	Id        int       `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	BookId    int       `gorm:"column:book_id;type:bigint(20) UNSIGNED;comment:文章id;not null;" json:"book_id"` // 文章id
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);comment:创建时间;not null;" json:"created_at"`   // 创建时间
}

func (BookLike) TableName() string {
	return "book_like"
}
